GOBLIN_DEFENSE := ../goblin_defense
SPRITES := sprites

all:
	g++ -o tex_pack.exe tex_pack.cpp -lpng -lz -Wall -Llibpng/lib -Ilibpng/include -Lzlib/lib -Izlib/include

clean:
	rm -fr *.bak tex_pack.exe spritetex.png sprites

install:
	cp sprites/spritetex.cpp $(GOBLIN_DEFENSE)/$(SPRITES)/spritetex.cpp
	cp sprites/spritetex.h $(GOBLIN_DEFENSE)/$(SPRITES)/spritetex.h
	cp sprites/textures/spritetex.png $(GOBLIN_DEFENSE)/$(SPRITES)/textures/spritetex.png
